﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<MyMainSite.Models.SearchIndexModel>" %>

<asp:Content ID="Content4" runat="server" ContentPlaceHolderID="contentMainMenu">
    <% Html.RenderPartial("MainMenu", Model); %>
</asp:Content>

<asp:Content ID="Content2" runat="server" ContentPlaceHolderID="contentBreadcrumb">
    <% Html.RenderPartial("Breadcrumb", Model); %>
</asp:Content>

<asp:Content ID="Content3" runat="server" ContentPlaceHolderID="contentLeftMenu">
    <% Html.RenderPartial("LeftMenu", Model); %>
</asp:Content>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <% if (Model.BlogEntries.Count > 0)
       {
           %><h2>Blog Entries</h2><%
           Html.RenderPartial("Blogs", Model.BlogEntries);
       } %>

    <% if (Model.Projects.Count > 0)
       {
           %><h2>Projects</h2><%
           Html.RenderPartial("Projects", Model);
       } %>

    <% if (Model.BlogEntries.Count == 0 && Model.Projects.Count == 0)
       { %>
        <h2>Sorry, no results found.</h2>
    <% } %>

</asp:Content>